package org.xutils.v;

import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.ListView;

import org.xutils.view.annotation.ViewInject;
import org.xutils.xView;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity extends AppCompatActivity {

    @ViewInject(R.id.btn)
    View btn;
    @ViewInject(R.id.lv_lsit)
    ListView lv_list;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        xView.view().inject(this);

        Log.d("-----", "btn: " + btn.getId());
        Log.d("-----", "fvd: " + findViewById(R.id.btn).getId());
        Log.d("-----", "lv: "+lv_list.getId());
        Log.d("-----", "fvl: "+findViewById(R.id.lv_lsit).getId());

    }
}